<?php

class FormElement_Text extends FormElement
{

  public $size = 255;

  public function render($row, $action)
  {
    switch ($action) {
      case Form::ACTION_EDIT :
      case Form::ACTION_CREATE :
        $this->set('size', $this->size);

        $output = parent::render($row, $action);

        break;

      default :
        $output = parent::render($row, $action);
    }

    return $output;
  }

}

?>